<h1><?php echo UserModule::t('Регистрация'); ?></h1>
<?php $form = $this->beginWidget('GxActiveForm', 
	array(
		'id' => 'registration-form',
		'enableAjaxValidation' => false,
		'htmlOptions'=>array(
			'class'=>'form-horizontal',
		),
	)
);
?>
<div class="control-group"><p class="note"><?php echo Yii::t('app', 'Поля'); ?> <span class="required">*</span> <?php echo Yii::t('app', 'обязательные'); ?>.</p></div>
<div class="control-group">
	<?php echo $form->labelEx($model,'last_name',array('class'=>'control-label')); ?>
	<div class="controls">
		<?php echo $form->textField($model, 'last_name', array('maxlength' => 255,'placeholder'=>UserModule::t('Фамилия'))); ?>
		<span class="help-inline"><?php echo $form->error($model,'last_name'); ?></span>
	</div>
</div>
<div class="control-group">
	<?php echo $form->labelEx($model,'first_name',array('class'=>'control-label')); ?>
	<div class="controls">
		<?php echo $form->textField($model, 'first_name', array('maxlength' => 255,'placeholder'=>UserModule::t('Имя'))); ?>
		<span class="help-inline"><?php echo $form->error($model,'first_name'); ?></span>
	</div>
</div>
<div class="control-group">
	<?php echo $form->labelEx($model,'username',array('class'=>'control-label')); ?>
	<div class="controls">
		<?php echo $form->textField($model, 'username', array('maxlength' => 255,'placeholder'=>UserModule::t('Email'))); ?>
		<span class="help-inline"><?php echo $form->error($model,'username'); ?></span>
	</div>
</div>
<div class="control-group">
	<?php echo $form->labelEx($model,'password',array('class'=>'control-label')); ?>
	<div class="controls">
		<?php echo $form->passwordField($model, 'password', array('maxlength' => 255,'placeholder'=>UserModule::t('Пароль'))); ?>
		<span class="help-inline"><?php echo $form->error($model,'password'); ?></span>
	</div>
</div>
<div class="control-group">
	<?php echo $form->labelEx($model,'verifyPassword',array('class'=>'control-label')); ?>
	<div class="controls">
		<?php echo $form->passwordField($model,'verifyPassword', array('maxlength' => 255,'placeholder'=>UserModule::t('Пароль еще раз'))); ?>
		<span class="help-inline"><?php echo $form->error($model,'verifyPassword'); ?></span>
	</div>
</div>
<?php if(extension_loaded('gd')): ?>
<div class="control-group">
	<?php echo $form->labelEx($model,'verifyCode',array('class'=>'control-label')); ?>
	<div class="controls">
		<?php $this->widget('CCaptcha'); ?><br />
		<?php echo $form->textField($model,'verifyCode',array('placeholder'=>UserModule::t('Код'))); ?>
		<span class="help-inline"><?php echo $form->error($model,'verifyCode'); ?></span>
		<span class="help-block"><?php echo UserModule::t('Пожалуйста, введите символы, указанные на картинке. <br/>Символы регостро-независимые.');?></span>
	</div>
</div>
<?php endif; ?>
<div class="control-group">
	<div class="controls">
		<?php echo GxHtml::submitButton(UserModule::t('Зарегестрировать'), array('class'=>'btn')); ?>
	</div>
</div>
<?php $this->endWidget(); ?>
<!-- form -->